<template>
	<view class="ctn">
		
		<view class="prograss-btn-wrap">
			<my-button type="text" @click='jumpPrograss'>查看进程</my-button>
		</view>
		<view class="leave-inform">
			<view class="leave-inform-tips">
				人员信息
			</view>
			<view class="inform-content">
				<my-list propTitle="姓名" :propValue="baseInfor.pk_psndoc.name" :bold="false" :boder="false"></my-list>
				<my-list propTitle="人员编码" :propValue="baseInfor.pk_psndoc.code" :bold="false" :boder="false"></my-list>
				<my-list propTitle="部门" :propValue="baseInfor.pk_dept?baseInfor.pk_dept.name:'未知'" :bold="false" :boder="false"></my-list>
			</view>
		</view>
		<view class="leave-inform">
			<view class="leave-inform-tips">
				销假信息
			</view>
			<view class="inform-content">
				<my-list propTitle="请假类别" :propValue="baseInfor.pk_leavetype.name" :bold="false" :boder="false"></my-list>
				<my-list propTitle="请假时长" :propValue="baseInfor.leavedays+'天'" :bold="false" :boder="false"
					:boldValue="false"></my-list>
			</view>
		</view>
		<view class="leave-inform">
			<view class="leave-inform-tips">
				销假日期
			</view>
			<view class="inform-content">
				<view class="time-sub">
					<my-list propTitle="开始时间" :propValue="baseInfor.realbegintime" :bold="false" :boder="false"></my-list>
					<my-list propTitle="结束时间" :propValue="baseInfor.realendtime" :bold="false" :boder="false"></my-list>
				</view>
			</view>
		</view>
		</view>
	</view>
</template>

<script>
	import service from '../../../common/service/new_file.js'
	import apiData from '../../../common/utils/apiData.js'
	export default {
		data() {
			return {
				baseInfor: {},
			}
		},
		methods: {
			jumpPrograss(){
				let pk = this.baseInfor.pk_leaveoff
				uni.navigateTo({
					url:'../../attendance/attendacePrograss?pk='+pk+'&billtype=HA02'
				})
			},
		},
		onLoad(options) {
			let leaveItem = JSON.parse(options.item)
			this.baseInfor = leaveItem.hvo
		}
	}
</script>

<style lang="scss">
	.prograss-btn-wrap{
		display: flex;
		flex-direction: row-reverse;
	}
	.filie-list {
		padding: 0 36rpx;
	}
	.file-sub {
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: #434343;
		padding: 8rpx 10rpx;
		border-bottom: 1rpx solid #dcdcdc;
		margin-bottom: 5rpx;
	}
	.delete{
		color: #007AFF;
		font-size: 30rpx;
	}
	.ctn {
		padding: 20rpx 36rpx;

		.leave-inform {
			margin-top: 20rpx;
			.leave-inform-tips {
				font-weight: 600;
				font-size: 30rpx;
				color: #007AFF;
				padding-left: 10rpx;
			}
		}
	}

	.leave-reason {
		margin-left: 40rpx;
		margin-bottom: 10rpx;
		padding: 20rpx 10rpx;
		border: 2rpx solid #dcdcdc;
		border-radius: 8rpx;
		font-size: 26rpx;
		color: #626262;
	}

	.time-sub {
		border-bottom: 2rpx solid #dddddd;
	}
</style>
